<?php
header('Content-Type:text/html;charset=utf-8');

$url='mysql:host=localhost;port=3306;dbname=test';
$conn=new PDO($url, 'mini2011', 'accp');
$result=$conn->query('select * from user');
$user=$result->fetchAll(PDO::FETCH_BOTH);

echo $user[0][0],$user[0][1],$user[0][2];

?>